#ifndef UI_HISTO_BINARISATION_H
#define UI_HISTO_BINARISATION_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QComboBox>
#include <QtGui/QDialog>
#include <QtGui/QDialogButtonBox>
#include <QtGui/QGridLayout>
#include <QtGui/QGraphicsView>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QWidget>
#include <QtGui/QSpinBox>
#include <Histogram/histogramme.h>

QT_BEGIN_NAMESPACE

class Ui_Binarisation
{
public:
    QDialogButtonBox *buttonBox;
    QGridLayout *gridLayout;
    QLabel *labelText;
    QGraphicsView *graphicsView;
    QGraphicsView *rectangleView;
    QVBoxLayout* verticalLayout;
    QSpinBox* seuilMin;
    QSpinBox* seuilMax;
    QLabel *labelSeuilMin;
    QLabel *labelSeuilMax;


    void setupUi(QDialog *DialogBinarisation)
    {
        if (DialogBinarisation->objectName().isEmpty())
            DialogBinarisation->setObjectName(QString::fromUtf8("DialogBinarisation"));

        DialogBinarisation->setWindowModality(Qt::ApplicationModal);
        verticalLayout = new QVBoxLayout(DialogBinarisation);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));

        DialogBinarisation->setLayout(verticalLayout);

        DialogBinarisation->resize(500, 400);

        buttonBox = new QDialogButtonBox(DialogBinarisation);
        buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
        buttonBox->setOrientation(Qt::Horizontal);
        buttonBox->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok);

        labelText = new QLabel();
        labelText->setText("Choisissez vos seuils de binarisation :");


        graphicsView = new QGraphicsView(DialogBinarisation);
        graphicsView->setObjectName(QString::fromUtf8("graphicsView"));

        rectangleView = new QGraphicsView(DialogBinarisation);
        rectangleView->setObjectName(QString::fromUtf8("rectangleView"));
        rectangleView->setMinimumHeight(17);
        rectangleView->setMaximumHeight(17);

        gridLayout = new QGridLayout();
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));

        labelSeuilMin = new QLabel();
        labelSeuilMin->setObjectName(QString::fromUtf8("labelSeuilMin"));
        labelSeuilMin->setText("Seuil Min");
        labelSeuilMax = new QLabel();
        labelSeuilMax->setObjectName(QString::fromUtf8("labelSeuilMax"));
        labelSeuilMax->setText("Seuil Max");
        seuilMin = new QSpinBox();
        seuilMin->setObjectName(QString::fromUtf8("seuilMin"));
        seuilMin->setMinimum(0);
        seuilMin->setMaximum(255);
        seuilMin->setValue(127);
        seuilMax = new QSpinBox();
        seuilMax->setObjectName(QString::fromUtf8("seuilMax"));
        seuilMax->setMinimum(0);
        seuilMax->setMaximum(255);
        seuilMax->setValue(255);

        gridLayout->addWidget(labelSeuilMin,0,0,1,1,Qt::AlignCenter);
        gridLayout->addWidget(seuilMin,0,1,1,1,Qt::AlignCenter);
        gridLayout->addWidget(labelSeuilMax,0,2,1,1,Qt::AlignCenter);
        gridLayout->addWidget(seuilMax,0,3,1,1,Qt::AlignCenter);

        verticalLayout->addWidget(labelText);
        verticalLayout->addWidget(graphicsView);
        verticalLayout->addWidget(rectangleView);
        verticalLayout->addLayout(gridLayout);
        verticalLayout->addWidget(buttonBox);

        retranslateUi(DialogBinarisation);
        QObject::connect(buttonBox, SIGNAL(accepted()), DialogBinarisation, SLOT(accept()));
        QObject::connect(buttonBox, SIGNAL(rejected()), DialogBinarisation, SLOT(reject()));


        QMetaObject::connectSlotsByName(DialogBinarisation);


    } // setupUi

    void retranslateUi(QDialog *DialogBinarisation)
    {
        DialogBinarisation->setWindowTitle(QApplication::translate("DialogBinarisation", "Binarisation", 0, QApplication::UnicodeUTF8));

       Q_UNUSED(DialogBinarisation);
    } // retranslateUi

};

namespace Ui_HistoBinarisation {
    class Binarisation: public Ui_Binarisation {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_HISTO_BINARISATION_H
